home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
ole2book.zip
/
CHAP04.ZIP
/
CHAP04
/
DKOALA
/
MAKEFILE
< prev
Wrap
Text File
|
1993-04-13
|
2KB
|
83 lines
#
# MAKEFILE
# Koala Object version 1.00
#
# Copyright (c)1993 Microsoft Corporation, All Rights Reserved
#
# Kraig Brockschmidt, Software Design Engineer
# Microsoft Systems Developer Relations
#
# Internet : kraigb@microsoft.com
# Compuserve: >INTERNET:kraigb@microsoft.com
#
#Add '#' to the next line for 'noisy' operation
!CMDSWITCHES +s
#
#Compiler flags
#Use "SET RETAIL=1" from MS-DOS to compile non-debug version.
#
!ifndef RETAIL
CFLAGS = -c -nologo -Od -AS -Zipe -G2s -W3 -GA -GEd -Aw
LINK = /al:16/ONERROR:NOEXE/CO
DEFS = -DSTRICT -D_WINDLL -DDEBUG
!else
CFLAGS = -c -nologo -Oat -AS -Zpe -G2s -W3 -GA -GEd -Aw
LINK = /al:16/ONERROR:NOEXE
DEFS = -DSTRICT -D_WINDLL
!endif
.SUFFIXES: .h .obj .exe .cpp .res .rc
TARGET = dkoala
goal: $(TARGET).dll
clean:
del *.obj
del *.res
del *.dll
LIBS = libw sdllcew compobj ole2
INCLS = $(TARGET).h koala.h
OBJS = $(TARGET).obj koala.obj
RCFILES =
#####
.cpp.obj:
echo +++++++++
echo Compiling $*.cpp
cl $(CFLAGS) $(DEFS) $*.cpp
.rc.res:
echo +++++++++
echo Compiling Resources
rc -r $(DEFS) $*.rc
#This rule builds a linker response file on the fly depending on debug flags
$(TARGET).dll : $(OBJS) $(TARGET).res $(TARGET).def
echo ++++++++++
echo Linking $@
echo libentry.obj + > $(TARGET).lrf
echo $(OBJS) >> $(TARGET).lrf
echo $(TARGET).dll $(LINK) >> $(TARGET).lrf
echo nul/li >> $(TARGET).lrf
echo $(LIBS)/NOD/NOE >> $(TARGET).lrf
echo $(TARGET).def >> $(TARGET).lrf
link @$(TARGET).lrf
rc -v $(TARGET).res $(TARGET).dll
del $(TARGET).lrf
##### Dependencies #####
$(TARGET).obj : $(TARGET).cpp $(INCLS)
koala.obj : koala.cpp $(INCLS)
$(TARGET).res : $(TARGET).rc $(INCLS) $(RCFILES)